cmake_minimum_required(VERSION 3.2)
project(test-project)

aux_source_directory(${PROJECT_SOURCE_DIR}/src SRC_LIST)
include_directories(${PROJECT_SOURCE_DIR}/include)
set(CMAKE_CXX_STANDARD 11)
set(HOME ${PROJECT_SOURCE_DIR})
set(EXECUTABLE_OUTPUT_PATH ${HOME}/execute/)

set(tmp "hello wolrd")
set(tmp ${tmp} " i want to be hero" " I love this wolrd")
message(tmp= ${tmp})
set(tmp "src_for_library=")
list(APPEND tmp ${SRC_LIST} " over")
list(REMOVE_ITEM tmp ${PROJECT_SOURCE_DIR}/src/main.cc)
message(${tmp})
list(REMOVE_ITEM tmp "src_for_library=" " over")
message(tmp=${tmp})

set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib)
add_library(calc_shared ${tmp})
add_library(calc_static ${tmp})

add_definitions(-DDEBUG)


link_directories(${PROJECT_SOURCE_DIR}/lib)
add_executable(app ${SRC_LIST})
target_link_libraries(app calc_shared)





